package tech.aistar.service.applytraveler.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.entity.authordis.NoteAuthor;
import tech.aistar.entity.noteshow.ApplyTraveler;
import tech.aistar.mapper.ApplyTravelerMapper;
import tech.aistar.service.applytraveler.IApplyTravelerService;
import tech.aistar.vo.applytraveler.ApplyTravelerVo;

/**
 * Created by Dell on 2019/9/30.
 */
@Service
@Transactional
public class ApplyTravlerService implements IApplyTravelerService {

    @Autowired
    private ApplyTravelerMapper applyTravelerMapper;


    @Override
    public NoteAuthor findTraveler(Integer user_id) {
        NoteAuthor noteAuthor = applyTravelerMapper.findTraveler(user_id);

        return noteAuthor;
    }
    @Override
    public void applyTravler(ApplyTraveler applyTraveler) {

        applyTravelerMapper.applyTravler( applyTraveler);


    }

    @Override
    public void updateTraveler(Integer user_id) {


        applyTravelerMapper.updateTraveler(user_id);

    }

    @Override
    public void addTravler(ApplyTraveler applyTraveler) {

        applyTravelerMapper.addTravler(applyTraveler);

    }




}
